package com.xueshishasha.oa.service;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import com.xueshishasha.oa.model.Plan;

public interface PlanService {

	public Plan getInfo(String id);

	public void updateInfo(Plan plan);

	public Serializable save(Plan plan);

	public void delete(Plan plan);

	public List<Plan> getAll();

	public Plan getModelById(Serializable id);

	public List<Plan> getModels(String hql, Object[] parameters);

	public void saveOrUpdate(Plan plan);

	public void saveOrUpdateAll(Collection<Plan> collection);

	public void update(Plan plan);

	public List<Plan> getByCriteria(DetachedCriteria dc);

}
